﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Text;
using OgilvyOne.BLL;

public partial class admin_infomation_columnExplain : AdminBasePage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            ColumnBll cbll = new ColumnBll();
            if (Layerid != null && Layerid != "")
            {
                this.header.Text = cbll.LayeridColumnConNaiv(Layerid);
            }
            else
            {
                StringBuilder desc = new StringBuilder();
                this.cname.Text = "7日内未发布数据汇总";
                IList ainitlist = cbll.GetArticleInitGroup();
                for (int i = 0; i < ainitlist.Count; i++)
                {
                    Hashtable m = (Hashtable)ainitlist[i];
                    string lid = (string)m["layerid"];
                    int num = (int)m["num"];
                    if (num > 0)
                    {
                        if (this.PopedomValidateHtml(lid, AUDIT))
                        {
                            desc.Append(cbll.LayeridColumnConNaiv(lid).Replace("当前", "") + "：" + num + " 个正稿未审核！</br>");
                        }
                    }
                }
                IList aauditlist = cbll.GetArticleAuditGroup();
                for (int i = 0; i < aauditlist.Count; i++)
                {
                    Hashtable m = (Hashtable)aauditlist[i];
                    string lid = (string)m["layerid"];
                    int num = (int)m["num"];
                    if (num > 0)
                    {
                        if (this.PopedomValidateHtml(lid, PUB))
                        {
                            desc.Append(cbll.LayeridColumnConNaiv(lid).Replace("当前", "") + "：" + num + " 个已审核，可以发布！</br>");
                        }
                    }
                }
                this.columnDetail.Text = desc.ToString();
            }
        }
    }
}
